package com.one.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户角色关系表
 * </p>
 *
 * @author zwj
 * @since 2021-09-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_role")
@ApiModel(value="UserRoleEntity对象", description="用户角色关系表")
public class UserRoleEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户Id")
    @TableId("userId")
    private String userId;

    @ApiModelProperty(value = "角色Id")
    @TableField("roleId")
    private String roleId;


}
